package com.jinghong.registerlogin.controller;

import com.jinghong.registerlogin.model.pojo.Question;
import com.jinghong.registerlogin.model.pojo.Result;
import com.jinghong.registerlogin.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName:QuestionController
 * Package:com.jinghong.registerlogin.controller
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2024/5/18 21:55
 * Version:1.0
 */
@RestController
@RequestMapping("/question")
public class QuestionController {
    @Autowired
    private QuestionService questionService;
    @PostMapping
    public Result insert(@RequestBody Question question){
        questionService.insert(question);
        return Result.success();
    }
}
